#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class TeachReachRcd : Business.BusinessBase<TeachReachRcd, int>
	{
		#region Fields and Properties

		private int term = 0;
		/// <summary>
		/// 
		/// </summary>
		public int Term
		{
			get { return term; }
			set
			{
				if (value != term)
				{
					MarkChanged("Term");
					term = value;
				}
			}
		}

		private String yearNum = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String YearNum
		{
			get { return yearNum; }
			set
			{
				if (value != yearNum)
				{
					MarkChanged("YearNum");
					yearNum = value;
				}
			}
		}

		private String attachmentCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AttachmentCode
		{
			get { return attachmentCode; }
			set
			{
				if (value != attachmentCode)
				{
					MarkChanged("AttachmentCode");
					attachmentCode = value;
				}
			}
		}

		private String des = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Des
		{
			get { return des; }
			set
			{
				if (value != des)
				{
					MarkChanged("Des");
					des = value;
				}
			}
		}

		private String subject = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Subject
		{
			get { return subject; }
			set
			{
				if (value != subject)
				{
					MarkChanged("Subject");
					subject = value;
				}
			}
		}

		private String partners = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Partners
		{
			get { return partners; }
			set
			{
				if (value != partners)
				{
					MarkChanged("Partners");
					partners = value;
				}
			}
		}

		private DateTime consistTime = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime ConsistTime
		{
			get { return consistTime; }
			set
			{
				if (value != consistTime)
				{
					MarkChanged("ConsistTime");
					consistTime = value;
				}
			}
		}

		private DateTime endTime = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime EndTime
		{
			get { return endTime; }
			set
			{
				if (value != endTime)
				{
					MarkChanged("EndTime");
					endTime = value;
				}
			}
		}

		private DateTime startTime = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime StartTime
		{
			get { return startTime; }
			set
			{
				if (value != startTime)
				{
					MarkChanged("StartTime");
					startTime = value;
				}
			}
		}

		private String tRCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String TRCode
		{
			get { return tRCode; }
			set
			{
				if (value != tRCode)
				{
					MarkChanged("TRCode");
					tRCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public TeachReachRcd()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override TeachReachRcd DataSelect(int id)
		{
			return Services.DALService.TeachReachRcdService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.TeachReachRcdService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.TeachReachRcdService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.TeachReachRcdService.Delete(this);
		}

		#endregion Base overrides
	}
}
